<?php
class Admin_Model_TableColumn_LoaiPhong{
	protected $id;
	protected $ten;
	protected $nguoi_tao;
	protected $ngay_tao;
	protected $nguoi_cap_nhat;
	protected $ngay_cap_nhat;
	protected $da_xoa;
	
	public function __construct(array $options = null) {
		if (is_array($options)) {
			$this->setOptions($options);
		}
	}
	public function __set($name, $value) {
		$method = 'set' . $name;
		if (('mapper' == $name) || !method_exists($this, $method)) {
			throw new Exception('Invalid content property');
		}
		$this->$method($value);
	}
	public function __get($name) {
		$method = 'get' . $name;
		if (('mapper' == $name) || !method_exists($this, $method)) {
			throw new Exception('Invalid content property');
		}
		return $this->$method();
	}
	public function setOptions(array $options) {
		$methods = get_class_methods($this);
		foreach ($options as $key => $value) {
			$method = 'set' . ucfirst($key);
			if (in_array($method, $methods)) {
				$this->$method($value);
			}
		}
		return $this;
	}
	//Id
	public function getId() {
		return $this->id;
	}
	public function setId($value) {
		$this->id=$value;
	}
	//ten
	public function getTen() {
		return $this->ten;
	}
	public function setTen($value) {
		$this->ten=$value;
	}
	//nguoi_tao
	public function getNguoi_tao() {
		return $this->nguoi_tao;
	}
	public function setNguoi_tao($value) {
		$this->nguoi_tao=$value;
	}
	//ngay_tao
	public function getNgay_tao() {
		return $this->ngay_tao;
	}
	public function setNgay_tao($value) {
		$this->ngay_tao=$value;
	}
	//nguoi_cap_nhat
	public function getNguoi_cap_nhat() {
		return $this->nguoi_cap_nhat;
	}
	public function setNguoi_cap_nhat($value) {
		$this->nguoi_cap_nhat=$value;
	}
	//ngay_cap_nhat
	public function getNgay_cap_nhat() {
		return $this->ngay_cap_nhat;
	}
	public function setNgay_cap_nhat($value) {
		$this->ngay_cap_nhat=$value;
	}
	//da_xoa
	public function getDa_xoa() {
		return $this->da_xoa;
	}
	public function setDa_xoa($value) {
		$this->da_xoa=$value;
	}
}